package service;

import entity.User;

/**
 * @version 1.0
 * @Author: xxf
 * @CreateDate: 2020/9/27 21:57
 */
public interface UserService {

    /**
     *
     * @param user
     * @return
     */
    int registerUser(User user);

    /**
     * 检测用户名是否存在
     * @param username
     * @return
     */
    boolean checkUserName(String username);

    /**
     * 登录验证
     * @param getUser
     * @return
     */
    User login(String username,String password);

    /**
     * 用户激活
     * @param code
     * @return
     */
    boolean active(String code);
}
